﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SqlserverManager
{
    public class SqlSugarContext
    {
        private readonly SqlSugarClient _db;

        public SqlSugarContext(string connectionString)
        {
            _db = new SqlSugarClient(new ConnectionConfig()
            {
                ConnectionString = connectionString,
                //DbType = DbType.SqlServer,
                DbType = DbType.MySql,
                IsAutoCloseConnection = true
                                            
            });
        }

    }
}
